<!--手机版导航-->
<div class="navM">
    <ul>
        <li><a href="/">首页</a></li>
        {NewsCategory assign="instance"}
            {foreach from=$instance->data key=$key item=$value}
                <li class="show">
                    {if !empty($value['children'])}
                        <a href="#">{$value['name']}</a>
                        <div class="arrow"></div>
                        <div class="sub_nav">
                            <ul>
                                {foreach from=$value['children'] item=$subVal}
                                <li><a href="{$subVal['url']}">{$subVal['name']}</a></li>
                                {/foreach}
                            </ul>
                        </div>
                    {else}
                        <a href="{$value['url']}">{$value['name']}</a>
                    {/if}
                </li>
            {/foreach}
        {/NewsCategory}
    </ul>
</div>
